import {
    HomeOutlined,
    ShopOutlined,
    AppstoreAddOutlined,
    FileDoneOutlined,
    UserOutlined,
    DollarOutlined,
    PictureOutlined
} from '@ant-design/icons';
import C2banner from "../pages/c2banner/C2banner";
import Finance from "../pages/finance/Finance";
import Home from "../pages/home/Home";
import Order from "../pages/order/Order";
import CategoryList from "../pages/product/category/CategoryList";
import ProductList from "../pages/product/productlist/ProductList";
import StoreMg from "../pages/storemg/StoreMg";
import User from "../pages/user/User";

const routes = [
    {
        path: '/admin/home',
        name: '首页',
        icon: <HomeOutlined />,
        component: Home
    },
    {
        path: '/admin/storemg',
        name: '店铺管理',
        icon: <ShopOutlined />,
        component: StoreMg
    },
    {
        path: '/admin/product',
        name: '商品管理',
        icon: <AppstoreAddOutlined />,
        children: [
            {
                path: '/admin/product/list',
                name: '商品列表',
                component: ProductList
            },
            {
                path: '/admin/product/category',
                name: '分类列表',
                component: CategoryList
            }
        ]
    },
    {
        path: '/admin/order',
        name: '订单管理',
        icon: <FileDoneOutlined />,
        component: Order
    },
    {
        path: '/admin/user',
        name: '用户管理',
        icon: <UserOutlined />,
        component: User
    },
    {
        path: '/admin/finance',
        name: '财务管理',
        icon: <DollarOutlined />,
        component: Finance
    },
    {
        path: '/admin/c2banner',
        name: 'C端BANNER',
        icon: <PictureOutlined />,
        component: C2banner
    }
]

export {routes}